de.ueberdosis.mp3info.id3v2
Class FrameAPIC

java.lang.Object
  |
  +--de.ueberdosis.mp3info.id3v2.ID3V2Frame
        |
        +--de.ueberdosis.mp3info.id3v2.FrameAPIC
All Implemented Interfaces:
Defines

public class FrameAPIC
extends ID3V2Frame

Attached Picture frame This frame contains a picture directly related to the audio file. Image format is the MIME type and subtype for the image. In the event that the MIME media type name is omitted, "image/" will be implied. The "image/png" or "image/jpeg" picture format should be used when interoperability is wanted. Description is a short description of the picture, represented as a terminated textstring. The description has a maximum length of 64 characters, but may be empty. There may be several pictures attached to one file, each in their individual "APIC" frame, but only one with the same content descriptor. There may only be one picture with the picture type declared as picture type $01 and $02 respectively. There is the possibility to put only a link to the image file by using the 'MIME type' "-->" and having a complete URL instead of picture data. The use of linked files should however be used sparingly since there is the risk of separation of files.


Field Summary
static java.lang.String[] pictureTypes
           
 
Fields inherited from class de.ueberdosis.mp3info.id3v2.ID3V2Frame
dataChanged, deprecatedSince, legalSince
 
Fields inherited from interface de.ueberdosis.mp3info.Defines
DEFAULT_ENCODING, ID3V2_FOOTER_SIZE, ID3V2_FRAME_HEADER_SIZE, ID3V2_HEADER_SIZE, ID3V2_X_HEADER_SIZE, MP3_FRAME_HEADER_SIZE, SUPPORTED_NUMBER_OF_EXTENDED_FLAG_BYTES, testPositions, VERSION
 
Constructor Summary
FrameAPIC(de.ueberdosis.mp3info.id3v2.ID3V2Frame frm, de.ueberdosis.mp3info.id3v2.DataSource ds)
           
 
Method Summary
 boolean containsData()
          Denotes if actual data are in this frame.
 java.lang.String getLongName()
           
 int legalSince()
          Informs since which version of ID3V2 this Frame is legal Only major versions are supported (eg.
 java.lang.String toString()
           
 
Methods inherited from class de.ueberdosis.mp3info.id3v2.ID3V2Frame
canDisplay, canEdit, createJPanel, createPanel, deprecatedSince, equals, getData, getDataLengthIndicator, getFileAlterPreservation, getFrameID, getSize, getTagAlterPreservation, getUnsynchronisation, hasGroupingIdentity, isAltered, isCompressed, isEncrypted, isReadOnly, isValid, toByteArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pictureTypes

public static final java.lang.String[] pictureTypes
Constructor Detail

FrameAPIC

public FrameAPIC(de.ueberdosis.mp3info.id3v2.ID3V2Frame frm,
                 de.ueberdosis.mp3info.id3v2.DataSource ds)
          throws SeekPastEndException
Method Detail

getLongName

public java.lang.String getLongName()

containsData

public boolean containsData()
Description copied from class: ID3V2Frame
Denotes if actual data are in this frame. Some Frames have a minimum size that is greater than the header although they don't contain any data. So I can't generally determine if a Frame is empty just by asking for its size.
To be overwritten by subclasses.

Overrides:
containsData in class ID3V2Frame

legalSince

public int legalSince()
Description copied from class: ID3V2Frame
Informs since which version of ID3V2 this Frame is legal Only major versions are supported (eg. 4 stands for ID3 v 2.4.0)

Overrides:
legalSince in class ID3V2Frame
Returns:
a number between 0 and (currently) 4. -1 means the actual frame didn't overwrite the method.

toString

public java.lang.String toString()
Overrides:
toString in class ID3V2Frame